package com.zone.vehicle.superapp.view.util;

import org.apache.commons.lang3.StringUtils;

/**
 * @Author: pkqlqx
 * @CreateDate: 2022/1/21 20:20
 * @Description:
 */
public class NumberUtil {

    public static String getNumber(String num){
        if (StringUtils.isEmpty(num)){
            return "0";
        }
        long number = Long.parseLong(num);
        if (number < 10000){
            return num;
        }else if (number > 10000 && number < 100000000){
            return (number/10000)+"w+";
        }else {
            return (number/100000000)+"亿+";
        }
    }

}
